<#import "/spring.ftl" as spring />
<#assign display=JspTaglibs["/WEB-INF/tlds/displaytag.tld"]/>
<html>
<head>
    <title><@spring.message "hole.details"/></title>
</head>
<body>
<h1><@spring.message "hole.details"/></h1>

<div>
    <a href="../course/view.htm?id=${entity.course.id}"><@spring.message "global.backTo"/>&nbsp;<@spring.message "course"/></a>
</div>
<div class="infoBox marginTop">
    <table>
        <tbody>
        <tr>
            <td><@spring.message "hole.orderOnCourse"/>:</td>
            <td>${entity.orderOnCourse}</td>
        </tr>
        <tr>
            <td><@spring.message "hole.slopeIndex"/>:</td>
            <td>${entity.slopeIndex}</td>
        </tr>
        <tr>
            <td><@spring.message "hole.par"/>:</td>
            <td>${entity.par}</td>
        </tr>
        <tr>
            <td><@spring.message "entity.description"/>:</td>
            <td>${entity.description!""}</td>
        </tr>
        <tr>
            <td><@spring.message "entity.name"/>:</td>
            <td>${entity.name!""}</td>
        </tr>
        <tr>
            <td><@spring.message "entity.modificationTime"/>:</td>
            <td>${entity.modificationTime?datetime}</td>
        </tr>
        <tr>
            <td><@spring.message "entity.creationTime"/>:</td>
            <td>${entity.creationTime?datetime}</td>
        </tr>
        </tbody>
    </table>
</div>
<div class="marginTop">
    <a href="../teebox/create.htm?id=${entity.id}"><@spring.message "entity.createNew"/>&nbsp;<@spring.message "teeBox"/></a>
</div>
<div class="marginTop"></div>
<h2><@spring.message "teeBox.teeBoxes"/></h2>
<div class="marginTop">
<@display.table name="entity.teeBoxes" id="teeBox" pagesize=20 class="listingTable">
<@display.column title="Colour" property="teeColour.description" sortable=true/>
<@display.column title="Length (m)" property="length"/>
<@display.column title="&nbsp;" class="listingTableLink"><a href="../teebox/view.htm?id=${teeBox.id}">View</a></@display.column>
<@display.column title="&nbsp;" class="listingTableLink"><a href="../teebox/edit.htm?id=${teeBox.id}">Edit</a></@display.column>
</@display.table>
</div>
</body>
</html>